package com.mdd.common.util.weifengqi;

import com.mdd.common.util.HttpUtils;

import java.util.HashMap;
import java.util.Map;

public class EnterpriseFourFactorVerificationUtil {

    public static final String url = "https://api.wfq2020.com/wuneng-web-api/v2/api/validate/enterprise/element/validation";
    public static final String interfaceCode = "ef911dbc71ee40c494f10b0a64d722a1ks438";
    public static final String interfaceCode111 = "a6343b19103946a28401e3329b2f6899HA2TO";
    public static final String secretKey = "fjx30gaP2uKSy0k2AbLGqFV4zUUWQS0y3AlTfF/7oP2LYQiIrYT2JJD39cq4vL+Q";
    public static final String secretKey111 = "231ntTEDmFPlYKAJdteqK5We22jbd7TT2WESPFHPA/h1lQFp4mkBp6QZvik8D8N3";


    public static HashMap<String, String> getEnterpriseFourFactorVerification(String companyName, String taxpayerId,  String corporateName, String corporateIdCard) {
        Map<String, String> map = new HashMap<>();
        //公司信息
        map.put("companyName", companyName);
        map.put("taxpayerId", taxpayerId);
        //法人信息
        map.put("corporateName", corporateName);
        map.put("corporateIdCard", corporateIdCard);
        //渠道固定参数
        map.put("interfaceCode", interfaceCode);
        map.put("secretKey", secretKey);
        String result = HttpUtils.sendGetParamsByUrl(url, map);
        System.out.println(result);

        return null;
    }
    //羊羊领企（北京）科技有限公司   91110108MAD7M0YM3Q     杨熙云   612724199803212118
    public static void main(String[] args) {
        getEnterpriseFourFactorVerification("羊羊领企（北京）科技有限公司", "91110108MAD7M0YM3Q", "杨熙云", "612724199803212118");
    }

}
